package jmine.tec.web.wicket.component.command.button;

import jmine.tec.web.wicket.component.command.CommandHandler;

import org.apache.wicket.ajax.AjaxRequestTarget;

/**
 * @author icaro
 */
public interface SaveAjaxCommandHandler extends CommandHandler {

    /**
     * Responsável por salvar a entidade
     * 
     * @param target {@link AjaxRequestTarget}
     */
    void save(AjaxRequestTarget target);

    /**
     * Ações feitas quando há erro
     * 
     * @param target {@link AjaxRequestTarget}
     */
    void onSubmitError(AjaxRequestTarget target);
}
